
cookie=`cat cookie.txt`

curl --compressed \
    -H 'Host: www.ti.com.cn' \
    -H 'Connection: keep-alive' \
    -H 'sec-ch-ua: "Google Chrome";v="95", "Chromium";v="95", ";Not A Brand";v="99"' \
    -H 'sec-ch-ua-mobile: ?0' \
    -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36" \
    -H "Content-Type: application/json" \
    -H 'X-Sec-Clge-Req-Type: ajax' \
    -H 'Expires: 0' \
    -H "Cache-Control: no-store, must-revalidate" \
    -H 'sec-ch-ua-platform: "macOS"' \
    -H 'Accept: */*' \
    -H 'Origin: https://www.ti.com.cn' \
    -H 'Sec-Fetch-Site: same-origin' \
    -H 'Sec-Fetch-Mode: cors' \
    -H 'Sec-Fetch-Dest: empty' \
    -H 'Referer: https://www.ti.com.cn/ordering-resources/buying-tools/quick-add-to-cart.html' \
    -H 'Accept-Encoding: gzip, deflate, br' \
    -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8' \
    -b "$cookie" \
    -d '{"cartRequestList":[{"packageOption":null,"opnId":"LMH3401IRMST","quantity":"10","tiAddtoCartSource":"store-pdp","sparam":""}],"currency":"CNY"}' \
    https://www.ti.com.cn/occservices/v2/ti/addtocart -v

